package com.huidian.busi.server.config;

import com.huidian.resource.client.MeterFeign;
import com.huidian.resource.client.StudentFeign;
import com.huidian.resource.client.enhance.MeterFeignEnhance;
import com.huidian.resource.client.enhance.StudentFeignEnhance;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author tjs
 */
@Configuration
public class FeignEnhanceConfig {

    @Bean("meterFeignEnhance")
    public MeterFeignEnhance meterFeignEnhance(MeterFeign meterFeign){
        return new MeterFeignEnhance(meterFeign);
    }


    @Bean("studentFeignEnhance")
    public StudentFeignEnhance studentEnhance(StudentFeign studentFeign){
        return new StudentFeignEnhance(studentFeign);
    }
}
